str = input("请输入字符串：")
dict = {}
for s in str:
    if s.isalpha():
        if s in dict:
            dict[s] += 1
        else:
            dict[s] = 1
    elif s.isdigit():
        if 'number' in dict:
            dict['number'] += 1
        else:
            dict['number'] = 1
print(dict)
